import request from '../utils/request'



export const getRoleList = () => {
    return request({
        url: '/role/list',
        method: 'GET',
    })
}


export const getPermission = (id) => {
    return request({
        url: `/role/permission/${id}`,
        method: 'GET',
    })
}


export const getPermissionList = () => {
    return request({
        url: '/permission/list',
        method: 'GET',
    })
}